package com.example.xugulink.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
 * @description: 徐顾
 * @author YoungYang
 * @version 1.0
 * @date 2022/09/19 17:41:06
 */
@Data
@Accessors(chain = true)
@TableName("XUGU")
public class XuGu {
  /** id */
  @TableId(type = IdType.AUTO)
  private Long id;

  /** 创建时间 */
  @TableField(value = "create_time", fill = FieldFill.INSERT)
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  /** 更新时间 */
  @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;

  /** 名字 */
  @TableField(value = "name")
  private String name;

  /** 性别 */
  @TableField(value = "sex")
  private Boolean sex;

  /** 年龄 */
  @TableField(value = "age")
  private Float age;
}
